//登录接口请求
import type { ILoginInfo, IAuth } from '@/biz/repo/user'
import axios from './base'

export const auth = ({ username, password }: ILoginInfo) => {
  return axios.post<IAuth, IAuth>('auth', { username, password })
}
